<?xml version='1.0'?>
<xsl:stylesheet
	version="1.0"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

  <xsl:template match="Projects">
    <table border="1" style="border:black 1pt solid;border-collapse:collapse" bgcolor="#d9d9d9" align="center">
      <tr bgcolor="#ffffff00"><th>&#xA0;Project&#xA0;</th><th>&#xA0;Compilation-HOST&#xA0;</th><th>&#xA0;Compilation-DEBUG&#xA0;</th><th>&#xA0;Compilation-RELEASE&#xA0;</th>
	                          <th>&#xA0;Doxygen&#xA0;</th><th>&#xA0;Coding Standards Complying&#xA0;</th><th>&#xA0;Unit-Tests&#xA0;</th><th>&#xA0;Coverage (%)&#xA0;</th>
							  <th>&#xA0;Memory Usage (%)&#xA0;</th><th>&#xA0;Memory Usage (Ablotute - MB)&#xA0;</th><th>&#xA0;CPU Usage (% - Avg.)&#xA0;</th></tr>
      <xsl:apply-templates/>      
    </table>
    Unit-Tests: PASSED/TOTAL(Not-Executed)
  </xsl:template>

  <xsl:template match="Project">
    <tr align="center">
      
        <th bgcolor="#ffffff00">&#xA0;<xsl:value-of select="@Name" />&#xA0;</th>
      
      <td>
        <xsl:attribute name="bgcolor">
          <xsl:if test="@CompilationHost=0">lime</xsl:if>
		  <xsl:if test="@CompilationHost>0">orange</xsl:if>
          <xsl:if test="@CompilationHost=-1">red</xsl:if>
        </xsl:attribute>	  
		<xsl:if test="@CompilationHost=-1">
			<a href="{@vs2010_lnk}">ERROR</a>			
		</xsl:if>
		<xsl:if test="@CompilationHost>-1">
				<a href="{@vs2010_lnk}"><xsl:value-of select="@CompilationHost"/></a>		
		</xsl:if>
        
      </td>
      <td>
	    <xsl:attribute name="bgcolor">
          <xsl:if test="@CompilationTarget=0">lime</xsl:if>
		  <xsl:if test="@CompilationTarget>0">orange</xsl:if>
          <xsl:if test="@CompilationTarget=-1">red</xsl:if>
        </xsl:attribute>	  
		<xsl:if test="@CompilationTarget=-1">
			<a href="{@vx653_lnk}">ERROR</a>			
		</xsl:if>
		<xsl:if test="@CompilationTarget>-1">
				<a href="{@vx653_lnk}"><xsl:value-of select="@CompilationTarget"/></a>		
		</xsl:if>
      </td>
      <td>
	    <xsl:attribute name="bgcolor">
          <xsl:if test="@CompilationTarget=0">lime</xsl:if>
		  <xsl:if test="@CompilationTarget>0">orange</xsl:if>
          <xsl:if test="@CompilationTarget=-1">red</xsl:if>
        </xsl:attribute>	  
		<xsl:if test="@CompilationTarget=-1">
			<a href="{@vx653_lnk}">ERROR</a>			
		</xsl:if>
		<xsl:if test="@CompilationTarget>-1">
				<a href="{@vx653_lnk}"><xsl:value-of select="@CompilationTarget"/></a>		
		</xsl:if>
      </td>	  
      <td>
        <xsl:attribute name="bgcolor">
          <xsl:if test="@Doxygen=0">lime</xsl:if>
          <xsl:if test="@Doxygen>0">red</xsl:if>
        </xsl:attribute>
        <xsl:if test="@Doxygen>0">
          <a href="{@doxygen_lnk}"><xsl:value-of select="@Doxygen"/></a>	
        </xsl:if>
      </td>
      <td>
	          <xsl:attribute name="bgcolor">

          <xsl:if test="@CodeVerification=-1">red</xsl:if>
        </xsl:attribute>
	  <xsl:if test="@CodeVerification>-1">
        <xsl:value-of select="@CodeVerification" />
		
		</xsl:if>
			  <xsl:if test="@CodeVerification=-1">FAILED</xsl:if>
      </td>
	  <td>
	    <xsl:attribute name="bgcolor">
          <xsl:if test="@UnitTestsFailed=0">lime</xsl:if>
          <xsl:if test="@UnitTestsFailed>0">red</xsl:if>
        </xsl:attribute>
		<xsl:if test="@UnitTestsTotal>0">
        <xsl:value-of select="@UnitTestsPassed" />/<xsl:value-of select="@UnitTestsTotal" />(<xsl:value-of select="@UnitTestsNotRun" />)
		</xsl:if>
      </td>
	        <td>
				    <xsl:attribute name="bgcolor">
          <xsl:if test="@Coverage=100">lime</xsl:if>
        </xsl:attribute>
			<xsl:if test="@Coverage>0">
        <xsl:value-of select="@Coverage" />%
		</xsl:if>
      </td>
	        <td>
			<xsl:if test="@MemoryUsagePercent>0">
        <xsl:value-of select="@MemoryUsagePercent" />%
		</xsl:if>
      </td>
	        <td>
			<xsl:if test="@MemoryUsageAbsolute>0">
        <xsl:value-of select="@MemoryUsageAbsolute" />MB
		</xsl:if>
      </td>
	        <td>
			<xsl:if test="@CpuUsagePercentAvg>0">
        <xsl:value-of select="@CpuUsagePercentAvg" />%
		</xsl:if>
      </td>
    </tr>
  </xsl:template>


</xsl:stylesheet>
